package yyl.service.impl;

import yyl.domain.User;
import yyl.mapper.UserMapper;
import yyl.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("userService")
public class UserServiceImpl implements UserService {

    /**
     * 自动注入userMapper
     */
    @Autowired
    private UserMapper userMapper;

    @Override
    public User login(String loginname, String password) {
        return userMapper.findWithLoginnameAndPassword(loginname, password);
    }
}
